package com.lichongbing.lyoggl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lichongbing.lyoggl.model.Account;
import com.lichongbing.lyoggl.service.AccountService;
import com.lichongbing.lyoggl.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account>
    implements AccountService{

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public List<Account> findByUid(String userid) {
        return accountMapper.findByUid(userid);
    }

    @Override
    public int deleteByUid(String id, String userid) {
        return accountMapper.deleteByUid(id,userid);
    }
}




